// 注册路由级
const router = require('koa-router')()
const indexRoutes = require('./routes/index.js')
const webRoutes = require('./routes/web.js')


// router.prefix('api_v1')

router.use('/index', indexRoutes.routes(), indexRoutes.allowedMethods())
router.use('/web', webRoutes.routes(), indexRoutes.allowedMethods())


router.redirect('/', '/index')
module.exports = router